import request from "../axios";

export default {
	// 获取账户收支列表，可根据开户名和账户模糊查询
	getAccountDetailList(params) {
		return request({
			method: "POST",
			url: '/account/getAccountDetailList',
			data: params
		})
	},
	// 获取账户列表，可根据开户名和账户模糊查询
	getAccountList(params) {
		return request({
			method: "POST",
			url: '/account/getAccountList',
			data: params
		})
	},
	// 获取单个账户，不含收支
	getAccount(params) {
		return request({
			method: "POST",
			url: '/account/getAccount',
			data: params
		})
	},
	// 添加账户
	addAccount(params) {
		return request({
			method: "POST",
			url: '/account/addAccount',
			data: params
		})
	},
	// 修改账户
	updateAccount(params) {
		return request({
			method: "POST",
			url: '/account/updateAccount',
			data: params
		})
	},
	// 删除账户
	deleteAccount(params) {
		return request({
			method: "POST",
			url: '/account/deleteAccount',
			data: params
		})
	},
	// 获取账户明细列表
	getDetailList(params) {
		return request({
			method: "POST",
			url: '/account/getDetailList',
			data: params
		})
	},
	// 修改账户明细备注
	updateDetailRemark(params) {
		return request({
			method: "POST",
			url: '/account/updateDetailRemark',
			data: params
		})
	},

	// 获取支出列表
	getPaymentBillingList(params) {
		return request({
			method: "POST",
			url: '/finance/getPaymentBillingList',
			data: params
		})
	},

	// 获取供应商账单列表
	getSupplierBilling(params) {
		return request({
			method: "POST",
			url: '/finance/getSupplierBilling',
			data: params
		})
	},

	// 获取供应商账单列表
	paymentSupplierBilling(params) {
		return request({
			method: "POST",
			url: '/finance/paymentSupplierBilling',
			data: params
		})
	},

	// 获取单个报销账单
	getExpenseBilling(params) {
		return request({
			method: "POST",
			url: '/finance/getExpenseBilling',
			data: params
		})
	},

	// 报销账单付款
	paymentExpenseBilling(params) {
		return request({
			method: "POST",
			url: '/finance/paymentExpenseBilling',
			data: params
		})
	},

	// 利润报表
	calculatingProfit(params) {
		return request({
			method: "POST",
			url: '/finance/calculatingProfit',
			data: params
		})
	},

	addWages(params) {
		return request({
			method: "POST",
			url: '/wages/addWages',
			data: params
		})
	},

	selectWages(params) {
		return request({
			method: "POST",
			url: '/wages/selectWages',
			data: params
		})
	},

	updateWages(params) {
		return request({
			method: "POST",
			url: '/wages/updateWages',
			data: params
		})
	},

	deleteWages(params) {
		return request({
			method: "POST",
			url: '/wages/deleteWages',
			data: params
		})
	},
}